/*
 * @Author: your name
 * @Date: 2020-04-24 11:56:06
 * @LastEditTime: 2020-04-30 16:26:37
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \my-admin\src\api\api.js
 */


import axios from '../config/axios'


/*
*  登录接口
*/

const login = data => {
    return axios({
        method:'post',
        url:"user/login",
        data
    })
}

/*
*  token验证
*/

const verifyToken = data => {
    return axios({
        method:'post',
        url:'user/isToken',
        data
    })
}

export default {
    login,
    verifyToken
}